package com.qk.code;


/**
 * @Author:zhengbowen
 * @Date: 2025/10/10 16:11
 * @Description:
 */
public enum BusinessEnum implements Code {
    USER_NOT_FOUND("用户不存在", 201),
    USER_PASSWORD_ERROR("账户或密码错误",203),
    USER_NOT_LOGIN("用户登录失败", 204),
    USER_STATUS_ERROR("用户状态异常", 202),
    USER_ADD_MESSAGE_NULL("用户信息填写不完整", 100),
    File_IS_NOT_EXIST("文件不存在", 1201),
    File_Name_IS_NOT_NULL("文件名不能为空", 1202),
    File_Load_ERROR("文件上传失败", 1203),
    System_ERROR("对不起,操作失败,请联系管理员", 1301),
    BUSINESS_ERROR("业务异常", 1100),
    COURSE_PRICE_ERROR("课程价格错误", 1400),
    CLUE_NOT_FOUND("线索不存在", 1500),
    ;
    BusinessEnum(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    private final String msg;
    private final Integer code;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
